/*
 * @Author: 肖思汗 
 * @Date: 2025-06-10 09:22:25 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-06-10 11:41:16
 */

import Api from "src/api/Api";

// 我的收藏
class MyCollectionApi extends Api {

    constructor() {
        super();
    }

    //我的收藏列表
    getlistMyCollect(pageNum: number, pageSize: number) {
        return this._get("/my/collect/listMyCollect", { pageNum, pageSize });
    }

    //新增我的收藏
    addMyCollect(productId: number) {
        return this._post("/my/collect/addMyCollect", { productId });
    }

    //编辑我的收藏
    editMyCollect(productId: number) {
        return this._post("/my/collect/editMyCollect", { productId });
    }


}

const myCollectionApi = new MyCollectionApi();

export default myCollectionApi;